package com.thirteen.app.controller;

import com.thirteen.app.service.QuestionService;
import com.thirteen.app.service.SysInformationService;
import com.thirteen.app.utils.tools.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = {"试卷"})
@RestController
@RequestMapping("/api")
@CrossOrigin
public class SystemInforController {
    @Resource
    private SysInformationService sysInformationService;

    @ApiOperation("获取系统信息")
    @PostMapping("/admin/dashboard/getData")
    public CommonResult queryInformation() {
        return CommonResult.success(sysInformationService.querySysInfo());
    }

}
